package com.supermap.application.controller;

import com.supermap.application.entity.TMacroIdent;
import com.supermap.application.service.MacroDataImportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @ClassName MacroDataQueryController
 * @Description TODO
 * @Author HEKE
 * @Date 2019/2/25 19:31
 */

@Controller
@RequestMapping(value = {"/macro","/service/macro"})
public class MacroDataQueryController {

    @Autowired
    private MacroDataImportService macroDataImportService;

    @RequestMapping(value = "/ident/by/idencode", method = RequestMethod.POST)
    @ResponseBody
    public List<TMacroIdent> getIdentByIdenCode(@RequestParam(value = "idencode") String idencode) {
        List<TMacroIdent> results = null;
        results = this.macroDataImportService.getIdentByIdenCode(idencode);
        return results;
    }
}
